<?php
namespace Lyh\Test\Block\Customer\Form;

class Login extends \Magento\Customer\Block\Form\Login {
  public function getUsername() {
    echo "这是block文件返回的函数";
  }
  public function overwriteModel()
  {
    $entity_id = 1;
    // 获取用户信息
    $customerInfo = $this->_customerSession->getCustomerInfo($entity_id); 
    
    return $customerInfo[0]['email'];
    // return $customerInfo;
  }
}